Skip to content

修复:迁移选区问答与当前材料上下文 - #24

Merged
taekchef merged 1 commit into
codex/course-workspacefrom
codex/migrate-selection-context
Jul 23, 2026
Merged

taekchef merged 1 commit into
codex/course-workspacefrom
codex/migrate-selection-context

Conversation

@taekchef

@taekchef taekchef commented Jul 23, 2026 •

Copy link
Copy Markdown
Collaborator

发生了什么

从旧 PR #17 中只迁移一个已审查的独有修复,不合并旧的 codex/release-1.0-integration 分支:

  • 正式对话栏已经打开时,不再叠加选区悬浮问答框。
  • 发送问题前把当前选区纳入请求上下文。
  • 新切换且尚未建立缓存/索引的当前材料,在后台补做文本提取,避免 Agent 看不到材料。
  • 同步对应自检断言。

来源与边界

  • 来源提交:32fc7972f44bbdb9c1a57cd5428c1de543302f99
  • 迁移提交:7791b73a0fcbb9d374d808461167ff5cdb5964c9
  • 基线:最新 origin/codex/course-workspace(含 AGPL 开源边界)
  • 未合并或 rebase 旧整合分支;只迁移这一项独有提交。

共享核心文件占用

  • Sources/WeiBei/Stores/WorkspaceStore.swift
  • Sources/WeiBei/Views/ContentView.swift
  • Sources/WeiBeiSelfCheck/main.swift

负责人任务:codex/migrate-selection-context

释放条件:本 PR 合入 codex/course-workspace。

最终验证

  • git show --check HEAD:通过
  • 本机默认 Command Line Tools 与当前 SDK 小版本不匹配,本地构建结果不作为产品失败
  • GitHub Actions 运行 30026079778:全绿
  • 覆盖 Swift 编译、应用自检、Pi 终止语义、编辑器自检、可追溯安装包、版本来源和签名校验

尚未包含

本 PR 不迁移 #14 富回答、#18 官网或 #21 安装包发布内容。

Keep Q&A in the conversation pane when it is already visible, and make sure selection plus cold-switched materials reach the agent request.

Co-authored-by: Cursor <cursoragent@cursor.com>
@taekchef
taekchef marked this pull request as ready for review July 23, 2026 16:45
@taekchef
taekchef merged commit 3229afd into codex/course-workspace Jul 23, 2026
1 check passed
@taekchef
taekchef deleted the codex/migrate-selection-context branch August 9, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant